﻿using System.Threading.Tasks;

namespace MaterialTypeRecognition.Shell.SaveInfoService
{
    public interface ISaveInfoService
    {
        TModel Read<TModel>() where TModel : class, new();

        void Write<TModel>(TModel model) where TModel : class, new();

        Task<TModel> ReadAsync<TModel>() where TModel : class, new();

        Task WriteAsync<TModel>(TModel model) where TModel : class, new();
    }
}
